﻿using Castle.Core.Logging;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebAppHappyNewYear.Filter
{
    public class CustomActionFilter3Attribute:ActionFilterAttribute
    {
        public override void OnActionExecuted(ActionExecutedContext context)
        {
            Console.WriteLine($"{nameof(CustomActionFilter3Attribute)} {context.HttpContext.Request} OnActionExecuted ");

        }

        public override void OnActionExecuting(ActionExecutingContext context)
        {
            Console.WriteLine($"{nameof(CustomActionFilter3Attribute)} {context.HttpContext.Request} OnActionExecuting ");
        }
    }
}
